package cn.itbaizhan;

import com.lsy.Main;

import java.lang.management.MemoryType;
import java.util.Arrays;

public class TsetIf02 {
    public static void main(String[] args) {
        double r = 4* Math.random();
        double arer = Math.PI*r*r;
        double circle = Math.PI*2*r;
        System.out.println("半径："+r);
        System.out.println("面积："+arer);
        System.out.println("周长："+circle);
        if(arer>=circle){
            System.out.println("面积大于周长");
        }else{
            System.out.println("面积小于周长");
        }
    }
}
